package com.strategy.demo2.main;

import com.strategy.demo2.GenerateContext;
import com.strategy.demo2.face.Strategy;

public class Client {

	public static void main(String[] args) throws ClassNotFoundException,
			IllegalAccessException, InstantiationException {
		String perfectPaperName = "StrategyImpl2";

		String className = "com.strategy.demo2.impl." + perfectPaperName;
		Class<?> pp = Class.forName(className);
		Strategy pps = (Strategy) pp.newInstance();

		GenerateContext context = new GenerateContext(pps);
		context.getHelloString();
	}

}
